#ifndef REBASE_H
#define REBASE_H

#include <windows.h>

inline DWORD rebase(DWORD address,char* moduleName = 0,DWORD base_address = 0x400000 )
{
	return (address - base_address) + (DWORD)(GetModuleHandle(moduleName));
}



#endif